<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <link rel="stylesheet" href="../../javascript/plug-ins/layui/css/layui.css" media="all" />

    <link rel="stylesheet" href="../../css/style.css?v=1" />
    <script src="../../javascript/jquery.js"></script>
    <script type="text/javascript" src="../../javascript/plug-ins/layui/layui.js"></script>

</head>

<body>
    <div class="page-wrap">
        <div class="leftRightInfo">
            <div onclick="tops();" style="background: grey;margin: 10px 0;padding: 2px;cursor:pointer">到顶部↑</div>
            <div onclick="bottoms();" style="background: grey;margin: 10px 0;padding: 2px;cursor:pointer">到底部↓</div>
        </div>
        <section class="page-hd t">
            <header>
                <h5 class="title">
                    <a href="#" class="red">编辑拼单商品</a>
                </h5>
            </header>
            <hr>
        </section>

        <div class="panel panel-default">

            <div class="form-content">

                <form>
                    <div class="form-group-col-2 update" style="display: none">
                        <div class="form-label">商品名称：</div>
                        <div class="form-cont">
                            <input id="proname" class="form-control laydate-icon width20" type="text"
                                readonly="readonly" value="" placeholder="商品名称" />
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div class="form-label">你要推荐的商品：</div>
                        <div class="form-cont">
                            <select class="width20 prize_select" id="types" onchange="selectAllProductInfoByInfoPc()">
                                <option value="0">请选择商品分类</option>
                            </select>
                            <input id="pronames" class="form-control laydate-icon width20" type="text" value=""
                                placeholder="商品名称" />
                            <input type="button" value="搜索" class="btn btn-warning"
                                onclick="selectAllProductInfoByInfoPc()" />
                        </div>
                    </div>

                    <div class="form-group-col-2 width85 margin_auto">
                        <div class="layui-fluid" style="margin-top: 15px;">
                            <table class="layui-hide" id="tableInfo" lay-filter="tableInfo"></table>
                            <div id="page" class="text-center"></div>
                        </div>
                        <div class="layui-fluid">
                            <div class="form-cont">
                                <input type="button" value="我已经选好了，我要提交" class="btn btn-warning"
                                    onclick="submitInfo()" />
                            </div>
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div class="form-label">商品套餐：</div>
                        <label class="check-box"><input type="checkbox" name="smd" onclick="AllChoose(this);"
                                value="0" /><span>全选</span></label>
                        <div class="form-cont">
                            <ul id="AllChooseList">
                            </ul>
                        </div>

                    </div>



                    <div class="form-group-col-2">
                        <div class="form-label">拼单开始时间：</div>
                        <div class="form-cont width40">
                            <input type="text" id="SpellTime" class="form-control width70 laydate-icon"
                                placeholder=" 时间起始-时间结束 ">
                        </div>
                    </div>


                    <div class="form-group-col-2">
                        <div class="form-label">等待时间(小时):</div>
                        <div class="form-cont">
                            <input type="number" step="1" class="form-control float_left form-boxed width20"
                                id="waitTime" value="24" step="1" placeholder="请输入等待时间/分钟" />
                            <span>小时</span>
                        </div>
                    </div>


                    <div class="form-group-col-2">
                        <div class="form-label">满足人数:</div>
                        <div class="form-cont">
                            <input type="number" step="1" class="form-control float_left form-boxed width20"
                                id="personNum" value="2" step="1" placeholder="请输入几人团" />
                        </div>
                    </div>

                    <div class="form-group-col-2">
                        <div class="form-label"></div>
                        <div class="form-cont">
                            <input type="button" value="提交" class="btn btn-info" onclick="SubmitInfo()" />
                            <input type="button" value="返回" class="btn btn-danger" onclick="pageBack()" />
                        </div>
                    </div>
                </form>


            </div>
            <!--form--->


        </div>
        <!---panel--->

    </div>
    <!---page-wrap------>


</body>
<script src="../../js/zyrfunction.js?v=2"></script>
<script src="../../js/zyrpublic.js?v=2"></script>
<script>
    document.write("<script type='text/javascript' src='js/addSpell.js?v=" + Math.random() + "'></scri" + "pt>");
</script>

</html>
<!-- <script>
    //上移
    function moveUp(obj) {
        for (var i = 1; i < obj.length; i++) {//最上面的一个不需要移动，所以直接从i=1开始
            if (obj.options[i].selected) {
                if (!obj.options.item(i - 1).selected) {
                    var selText = obj.options[i].text;
                    var selValue = obj.options[i].value;
                    obj.options[i].text = obj.options[i - 1].text;
                    obj.options[i].value = obj.options[i - 1].value;
                    obj.options[i].selected = false;
                    obj.options[i - 1].text = selText;
                    obj.options[i - 1].value = selValue;
                    obj.options[i - 1].selected = true;
                }
            }
        }
    }

    //下移
    function moveDown(obj) {
        for (var i = obj.length - 2; i >= 0; i--) {//向下移动，最后一个不需要处理，所以直接从倒数第二个开始
            if (obj.options[i].selected) {
                if (!obj.options[i + 1].selected) {
                    var selText = obj.options[i].text;
                    var selValue = obj.options[i].value;
                    obj.options[i].text = obj.options[i + 1].text;
                    obj.options[i].value = obj.options[i + 1].value;
                    obj.options[i].selected = false;
                    obj.options[i + 1].text = selText;
                    obj.options[i + 1].value = selValue;
                    obj.options[i + 1].selected = true;
                }
            }
        }
    }
    //移动
    function moveOption(obj1, obj2) {
        for (var i = obj1.options.length - 1; i >= 0; i--) {
            if (obj1.options[i].selected) {
                var opt = new Option(obj1.options[i].text, obj1.options[i].value);
                opt.selected = true;
                obj2.options.add(opt);
                obj1.remove(i);
            }
        }
        //查询列表数据
        SelectMealInfoByType();
    }
    //置顶
    function moveTop(obj) {
        var opts = [];
        for (var i = obj.options.length - 1; i >= 0; i--) {
            if (obj.options[i].selected) {
                opts.push(obj.options[i]);
                obj.remove(i);
            }
        }
        var index = 0;
        for (var t = opts.length - 1; t >= 0; t--) {
            var opt = new Option(opts[t].text, opts[t].value);
            opt.selected = true;
            obj.options.add(opt, index++);
        }
    }
    //置底
    function moveBottom(obj) {
        var opts = [];
        for (var i = obj.options.length - 1; i >= 0; i--) {
            if (obj.options[i].selected) {
                opts.push(obj.options[i]);
                obj.remove(i);
            }
        }
        for (var t = opts.length - 1; t >= 0; t--) {
            var opt = new Option(opts[t].text, opts[t].value);
            opt.selected = true;
            obj.options.add(opt);
        }
    }

</script> -->